<?php
//tablename
$opts['tb'] = $PACTS_cfg->agerangetablename;

// Name of field which is the unique key
$opts['key'] = 'AgeRange';

// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'string';

// Sorting field(s)
$opts['sort_field'] = array('AgeRange');

$opts['fdd']['AgeRange'] = array(
  'name'     => 'AgeRange',
  'select'   => 'T',
  'maxlen'   => 15,
  'sort'     => true
);
$opts['fdd']['Description'] = array(
  'name'     => 'Description',
  'select'   => 'T',
  'maxlen'   => 15,
  'sort'     => true
);
$opts['fdd']['AdultIndicator'] = array(
  'name'     => 'AdultIndicator',
  'select'   => 'T',
  'maxlen'   => 1,
  'values'   => array(
                  "Y",
                  "N"),
  'default'  => 'Y',
  'sort'     => true
);
$opts['fdd']['LowerAgeLimit'] = array(
  'name'     => 'LowerAgeLimit',
  'select'   => 'T',
  'maxlen'   => 11,
  'sort'     => true
);
$opts['fdd']['UpperAgeLimit'] = array(
  'name'     => 'UpperAgeLimit',
  'select'   => 'T',
  'maxlen'   => 11,
  'sort'     => true
);
$opts['fdd']['OrderNum'] = array(
  'name'     => 'OrderNum',
  'select'   => 'T',
  'maxlen'   => 11,
  'default'  => '0',
  'sort'     => true
);
// Now important call to phpMyEdit
//require_once 'phpMyEdit.class.php';
new phpMyEdit($opts);
?>